home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / AppleScript / Additions / ACME Script Widgets 1.0 / Change Case ƒ / Change Case READ ME! < prev    next >
Encoding:
Text File  |  1994-10-26  |  2.8 KB  |  78 lines  |  [ttro/ttxt]

  1.  
  2. ____________________________________________________
  3.  
  4.     Change Case ver. 1.0
  5.  
  6.          Copyright (C) 1994 Wayne Walrath
  7.  
  8. ____________________________________________________
  9.  
  10. This software is free for personal use. To obtain a cheap and simple license for
  11. corporate, commercial or institutional use, contact the author at one of the
  12. addresses listed at the end of this document. THIS SOFTWARE IS PROVIDED AS IS
  13. WITHOUT WARRANTIES. USE AT YOUR OWN RISK! You are encouraged to share this
  14. software with other people and to upload it to online services, but you may not
  15. charge money for it and you should only transfer the complete package. Contact
  16. me if you doubt whether you have a complete package. Inclusion on CD-ROMs
  17. requires explicit permission from me (the author).
  18.  
  19.  
  20. change case is an AppleScript Scripting Addition (OSAX) which transforms the
  21. case of the text passed to it (in a variety of ways). This OSAX is most likely
  22. ONLY useful for working with English language text, since other languages have
  23. their own rules for capitalization, and the Scripting Addition only looks for
  24. the twenty-six characters used in English.
  25.  
  26. INSTALLATION:
  27. ______________________
  28. To install: Drag Change Case to the Scripting Additions folder inside the
  29. Extensions folder.
  30.  
  31.  
  32.  
  33. USAGE:
  34. _______________
  35.  
  36. change case of <anything> [ to upper/lower/title case
  37.         /sentence case/toggle case/who cares ]
  38.  
  39.     the direct parameter ( just after "of" ) can be a string or list of
  40.     strings. If the optional paramter specifying the transform is
  41.     ommitted, it defaults to upper case.
  42.  
  43.     I would have preferred to add the word "case" after each of the
  44.     enumerated transform types but AppleScript recognizes "upper case" as
  45.     a class type, so I left it off of lower and upper. Unfortunately it
  46.     isn't terribly consistent.
  47.  
  48.     The upper and lower transforms are probably clear.
  49.  
  50.     Title case makes the first alpha character after a non-alpha character
  51.     upper case.
  52.  
  53.     Sentence case searches for the first alpha character in the string and
  54.     capitalizes it, then continues on searching for one of /!/./?/ and
  55.     capitalizes the next alpha character after seeing one of the
  56.     punctuation marks (all other characters are left untouched).
  57.  
  58.     Toggle just switches the case of each character from whatever it was.
  59.  
  60.     The "who cares" option was added mostly for fun (well, totally for fun)
  61.     and randomly changes the case of each letter (if anyone finds a use
  62.     for this option other than creating electronic ransom notes, please
  63.     let me know...).
  64.  
  65.  
  66. ______________________
  67. Comments, bug reports and suggestions are welcomed. If you have any ideas for useful Scripting Additions which haven't been written yet, send me a message describing your idea.
  68.  
  69.  
  70.     ___________________________
  71.         Wayne Walrath
  72.         2010 Ravenswood Dr.
  73.         Evansville, IN 47714
  74.         (812) 476-8610
  75.         walrath@cs.indiana.edu
  76.         CIS: 70233,3151 
  77.     ___________________________
  78.